package com.ext.aic.box.injection;

import android.accessibilityservice.AccessibilityServiceInfo;

import com.ext.aic.box.AccessibilityManager;
import com.ext.aic.constants.EBusConstants;
import com.eyinfo.android_pure_utils.ebus.EBus;
import com.eyinfo.android_pure_utils.events.Action1;

public class RegisterConnectedApplication implements Action1<AccessibilityServiceInfo> {
    @Override
    public void call(AccessibilityServiceInfo serviceInfo) {
        AccessibilityManager.getInstance().setRunning(true);
        EBus.getInstance().post(EBusConstants.startedAccessibilityServer, true);
    }
}
